<?php
$this->breadcrumbs = array(
	Yii::t('user','Thành viên'),
	Yii::t('user','Đăng ký thành viên')
)
?>
<h1><?php echo Yii::t('user','Đăng nhập') ?></h1>

<div class="wide form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableAjaxValidation'=>false,
	'focus'=>array($model,'email')
)); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email'); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>

	<div class="row rememberMe">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
	</div>

	<div class="row submit">
		<?php echo CHtml::submitButton(Yii::t('user','Đăng nhập'), array('class'=>'g-button g-button-submit')); ?>
		<?php echo CHtml::link(Yii::t('user','Quên mật khẩu?'),array('/user/forgotPassword')); ?><br>        
		<?php echo CHtml::link(Yii::t('user','Chưa có tài khoản? Đăng ký ngay!'),array('/user/register')); ?><br>        
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->   